
* P�rez Li��n, An�bal. 2008.  �La reversi�n del resultado en la doble vuelta electoral: Una evaluaci�n institucional del balotaje�. Mir�ada 1 (1): 9-34 (Argentina)

*** Datos Descriptivos *** .

** Excluye elecciones no competitivas .
USE ALL.
COMPUTE filter_$=(drop=0).
VARIABLE LABEL filter_$ 'drop=0 (FILTER)'.
VALUE LABELS filter_$  0 'Not Selected' 1 'Selected'.
FORMAT filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE .

** Tabla 1 .
MEANS
  TABLES=first1  BY rule
  /CELLS MEAN COUNT  .

** Figura 2 .
EXAMINE VARIABLES=first1 BY rule /PLOT=BOXPLOT/STATISTICS=NONE/NOTOTAL/ID=country .

*** Tabla 3 .
** Excluye elecciones no competitivas .
USE ALL.
COMPUTE filter_$=(drop=0).
VARIABLE LABEL filter_$ 'drop=0 (FILTER)'.
VALUE LABELS filter_$  0 'Not Selected' 1 'Selected'.
FORMAT filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE .

REGRESSION
  /MISSING LISTWISE
  /STATISTICS COEFF OUTS R ANOVA
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN
  /DEPENDENT index
  /METHOD=ENTER indirect balotaje runoff invers ln_age ln_enp margin post03 
  /METHOD=ENTER indirect balotaje runoff invers ln_age ln_enp margin post03 age_inv   .


** Simulaci�n de 5 escenarios basados en Modelo 3-2 .
IF (elected="1" or elected="2" or elected="3" or elected="4" or elected="5") drop=0. 
IF (elected="1" or elected="2" or elected="3" or elected="4" or elected="5") indirect=0. 
IF (elected="1") balotaje=0. 
IF (elected="2" or elected="3" or elected="4" or elected="5") balotaje=1. 
IF (elected="1") runoff=0. 
IF (elected="2" or elected="3" or elected="4" or elected="5") runoff=1. 
IF (elected="2" or elected="1") invers=0. 
IF (elected="3" or elected="4" or elected="5") invers=1 . 
IF (elected="1" or elected="2" or elected="4") ln_age= ln(10) . 
IF (elected="3") ln_age= ln(3) . 
IF (elected="5") ln_age= ln(50) . 
IF (elected="1" or elected="2" or elected="3" or elected="4" or elected="5") ln_enp = ln(3) . 
IF (elected="1" or elected="2" or elected="3" or elected="4" or elected="5") margin = 10 . 
IF (elected="1" or elected="2" or elected="3" or elected="4" or elected="5") post03 = 0 . 
IF (elected="1" or elected="2" or elected="3" or elected="4" or elected="5") age_inv = ln_age*invers . 
execute.

REGRESSION
  /MISSING LISTWISE
  /STATISTICS COEFF OUTS R ANOVA
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN
  /DEPENDENT index
  /METHOD=ENTER indirect balotaje runoff invers ln_age ln_enp margin post03 age_inv  
  /save=pred .



